$package('jeecg.p2pTdUserResource');
jeecg.p2pTdUserResource = function(){
	var _box = null;
	var _this = {
		config:{
			event:{
				add:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.add();
				},
				edit:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.edit();
				}
			},
  			dataGrid:{
  				title:'版本管理',
	   			url:'dataList.do',
	   			columns:[[
					{field:'id',checkbox:true},
					{field:'account',title:'账号',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.account;
							}
						},
					{field:'namestr',title:'姓名',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.namestr;
							}
						},
					{field:'sex',title:'性别',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.sex;
							}
						},
					{field:'dq',title:'户籍所在地',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.dq;
							}
						},
					{field:'mobilestr',title:'手机号码',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.mobilestr;
							}
						},
					{field:'isopenhfstr',title:'是否开通汇付',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.isopenhfstr;
							}
						},
					{field:'isnoinveststr',title:'有无在投',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.isnoinveststr;
							}
						},
					{field:'investmoney',title:'在投金额',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.investmoney;
							}
						},
					{field:'remainderamount',title:'帐户余额',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.remainderamount;
							}
						},
					{field:'investcount',title:'累计投标笔数',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.investcount;
							}
						},
					{field:'createtimestr',title:'注册时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.createtimestr;
							}
						},
					{field:'resource',title:'注册来源',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.resource;
							}
						},
					{field:'mobeileverifiedtimestr',title:'绑定手机时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.mobeileverifiedtimestr;
							}
						},
					{field:'custcreatetimestr',title:'开户时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.custcreatetimestr;
							}
						},
					{field:'firstinvesttimestr',title:'首笔投资时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.firstinvesttimestr;
							}
						},
					{field:'bak1',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak1;
							}
						},
					{field:'bak2',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak2;
							}
						},
					{field:'bak3',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak3;
							}
						},
					{field:'updatetime',title:'更新时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.updatetime;
							}
						},
					]]
			}
		},
		init:function(){
			_box = new YDataGrid(_this.config); 
			_box.init();
		}
	}
	return _this;
}();

$(function(){
	jeecg.p2pTdUserResource.init();
});